package com.xjtu.project.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xjtu.project.model.domain.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjtu.project.model.dto.OrderRejectionDTO;
import com.xjtu.project.model.dto.OrderSubmitDTO;
import com.xjtu.project.model.dto.OrdersPageQueryDTO;
import com.xjtu.project.model.dto.PageDTO;
import com.xjtu.project.model.vo.OrderSubmitVO;
import com.xjtu.project.model.vo.OrdersVO;

/**
* @author 86185
* @description 针对表【orders】的数据库操作Service
* @createDate 2025-07-04 18:25:18
*/
public interface OrdersService extends IService<Orders> {

    void cancel(OrderRejectionDTO orderRejectionDTO);

    void complete(Integer id);

    Page<Orders> conditionSearch(OrdersPageQueryDTO ordersPageQuery);

    PageDTO<OrdersVO> getMyOrders(OrdersPageQueryDTO ordersPageQueryDTO);
    void cancelById(Integer id);

    OrderSubmitVO submit(OrderSubmitDTO submitDTO);

    void pay(String orderNumber);
}
